VERSION = 0.6
DISTDIR = dist
LGDIR   = lineguide
ARCHIVE = lineguide-${VERSION}.tar.gz
SVNURL  = http://lineguide.googlecode.com/svn/tags/release-0.6

dist: dist-clean
	mkdir ${DISTDIR}
	svn co ${SVNURL} ${DISTDIR}/${LGDIR} > /dev/null
	rm -f ${DISTDIR}/${LGDIR}/template.c ${DISTDIR}/${LGDIR}/Makefile
	cd ${DISTDIR}/${LGDIR}/docs && make
	cd ${DISTDIR} && tar czf ${ARCHIVE} ${LGDIR}

dist-clean:
	rm -rf ${DISTDIR}

clean: dist-clean
